package com.weiquan.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * AI服务配置类
 */
@Data
@Configuration
@ConfigurationProperties(prefix = "ai.service")
public class AiConfig {

    /**
     * API基础URL
     */
    private String baseUrl = "https://ark.cn-beijing.volces.com/api/v3";

    /**
     * API密钥
     */
    private String apiKey = "853a20e8-a803-41d3-990d-9e96c44cb79b";

    /**
     * 模型名称
     */
    private String modelName = "doubao-1-5-pro-32k-250115";

    /**
     * 请求超时时间（秒）
     */
    private Integer timeout = 30;

    /**
     * 最大重试次数
     */
    private Integer maxRetries = 3;

    /**
     * 流式响应
     */
    private Boolean stream = true;

    /**
     * 最大token数
     */
    private Integer maxTokens = 2000;

    /**
     * 温度参数（0-1）
     */
    private Double temperature = 0.7;
}